<?php
declare (strict_types = 1);
namespace app\index\model\common;

use think\Model;

/**
 * @mixin \think\Model
 */
class SystemConfig extends Model
{
    protected $pk = "id";

    /**
     * 获取指定的配置值
     * @param $key
     * @return mixed
     */
    function getValueByKey($key){
        return $this->where('config_key',$key)->value('config_value');
    }





}
